home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / WINDOWS / LZAPI.ZIP / LZRES.ZIP / LZRES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-15  |  1.7 KB  |  69 lines

  1. /* LZRES -------------------------------------------------------*
  2.  * Header definition File for LZRES.OBJ and LZRES32.OBJ        *
  3.  * (Decompression of Resources stored inside of LZH-Arhcives)    *
  4.  *    Dipl. Ing. Bernd Herd                    Dipl. Ing Harald Nuding*
  5.  *    Niederstr 36                                                    *
  6.  *    64285 Darmstadt                                                 *
  7.  *    Tel. 06151/664717                       Fax 06151/664740        *
  8.  *      EMail: herdnuding@aol.com               BBS:06151/664741        *
  9.  *--------------------------------------------------------------*/
  10.  
  11. #ifndef __LZRES_H
  12. #define __LZRES_H
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18.  
  19.  
  20.  
  21. // ---------- Definition of a typical LHA-Header ---------
  22. // Normally you will never need this
  23.  
  24. #ifndef LZEXACT
  25. typedef void FAR *LPLZHEAD;
  26. #else
  27.  
  28.   typedef struct head {
  29.     char        headersize;
  30.     char         method[6];
  31.     DWORD        packed;
  32.     DWORD        original;
  33.     short        FTime;
  34.     short        FDate;
  35.     short        FAttr;
  36.     char        FnLen;
  37.     char        Fname[80];
  38.   } LZHEAD, FAR *LPLZHEAD;                // Long Pointer to the Structure
  39.  
  40. #endif // LZEXACT
  41.  
  42.  
  43.  
  44.  
  45.  
  46. // ---------- Decompress LZH-Resource into a Bitmap-Handle -------------
  47. HBITMAP FAR PASCAL
  48.     LoadLZHBitmap(   HINSTANCE hInst, LPCSTR ResId, LPCSTR ArcFile );
  49.  
  50. // ---------- Decompress LZH-Resource into a Global Handle -------------
  51. HGLOBAL FAR PASCAL
  52.     LoadLZHResource( HINSTANCE hInst, LPCSTR ResId, LPCSTR ArcFile, int iBytesToOmit  );
  53.  
  54. // ---------- Decompress a Memory-Block containing a LZH-Archiv into a global Handle ---------
  55. HGLOBAL FAR PASCAL
  56.     DecompressLZH( LPLZHEAD SourcePtr, LPCSTR ArcFile, int iBytesToOmit );
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68. #endif  // __LZRES_H
  69.